package com.learn.code.juc.sync;

/**
 * @author : 翌擎科技
 * @date : 2022/8/2 10:26
 */
public class SynchronizedTest {
    public static void main(String[] args) {
        new Thread(()->{
            try {
                Thread.sleep(100);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            SyncDemo.syncA();
        }).start();
        new Thread(()->{
            SyncDemo.syncB();
        }).start();

    }
}
